<template>
    <div>
        <footer>
            <p>需支付：<span>￥<b>{{price}}</b></span></p>
            <router-link to="/payment"><button @clikc="go()">提交订单</button></router-link>
        </footer>
    </div>
</template>

<script>
export default {
    props:{
        price:Number
    }
}
</script>
<style scoped>
footer{
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
}
footer p{
    font-size: 16px;
    color: #666;
    line-height: 44px;
    height: 44px;
}
footer p span{
    color: #e81616;
    font-size: 12px;
    margin-left: 10px;
}
footer p span>b{
    font-size: 24px;
}
footer button{
    width: 200px;
    height: 40px;
    border: none;
    font-size: 18px;
    background: none;
    text-align: center;
    line-height: 40px;
    border-radius: 20px;
    color: #fff;
    background: #e81616;
    outline: none;
    margin-left: 40px;
}

</style>